import { createApp } from 'vue'
import App from './App.vue'

createApp(App).mount('#app')

// 打开浏览器 你会发现请求的main.js变成了↓
/*
import { createApp } from '/@modules/vue.js'
import App from '/src/App.vue'

createApp(App).mount('#app')
*/

//App.vue变成了
/*

import {reactive,toRefs} from '/@modules/vue.js';
const __script = {
  name: 'App',
  setup(){
    let state = reactive({count: 0});

    function handleClick(){
      state.count++;
    }

    return {
      ...toRefs(state),
      handleClick
    }
  }
}

import { render as __render } from "/src/App.vue?type=template&t=1595216092746"
__script.render = __render
__script.__hmrId = "/src/App.vue"
__script.__file = "D:\\x\\vite_tutorial\\00vite-demo\\src\\App.vue"
export default __script
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkQ6XFx4XFx2aXRlX3R1dG9yaWFsXFwwMHZpdGUtZGVtb1xcc3JjXFxBcHAudnVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFNQSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDbkMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRTtFQUNiLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7RUFDWCxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUF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dW5jdGlvbiBoYW5kbGVDbGljaygpe1xuICAgICAgc3RhdGUuY291bnQrKztcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgLi4udG9SZWZzKHN0YXRlKSxcbiAgICAgIGhhbmRsZUNsaWNrXG4gICAgfVxuICB9XG59XG48L3NjcmlwdD5cbiJdfQ==
* */

/**
 * 1. 默认采用的是es6原生的模块 (import 语法 在es6中默认会发送一个请求)
 * 2. 默认会给vue的模块增加一个前缀 /@modules
 * 3. 把.vue文件在后端给解析成一个对象了(唯一就是编译了.vue文件)
 * */
